package com.zhsource.system.mapper;

import com.zhsource.system.domain.Permission;
import com.zhsource.system.query.PermissionQuery;

import java.util.List;

/**
 * <p>@ClassName：PermissionMapper
 * <p>@Date 2023/10/17  23:15
 *
 * @Author zzl
 **/
public interface PermissionMapper {
    List<Permission> list();

    Permission selectById(Long id);

    void update(Permission permission);

    void insert(Permission permission);

    void delete(Long id);

    void batchDel(List<Long> ids);

    List<Permission> page(PermissionQuery permissionQuery);

    Permission selectBySn(String permissionSn);

    void deleteAll();

    void batchAdd(List<Permission> permissionList);

    List<String> selectPermissionSnByLogininfoId(Long id);
}
